package Action;
import domain.*;

import java.sql.Date;
import java.text.SimpleDateFormat;

import UserService.*;
public class Repair {
	private TRepairInfo r;
	private UserService userService;
	
	
	public TRepairInfo getR() {
		return r;
	}
	public void setR(TRepairInfo r) {
		this.r = r;
	}
	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	public String Repair(){
		TRepairInfo A;
		userService=new UserServiceImpl();
		A=userService.RCar(r);
		if(A!=null||A.equals("")){
		return "success";
		}else{
			return "input";
		}
	}
}
